Returns a variant array containing rows of MTA Log Summary information for the specified MTA Log Type.
obj.LogSummary(MTA_Type Long, DataOut Variant, RowCount Long, [TopNN Long]) where obj is an McExchg.MTALogAnalyzer object.
MTA_Type
|
Specifies the type of MTA log summary to return. Valid values are: PI_MTA_SMTP_OUT_SENDER = 1001 PI_MTA_SMTP_OUT_RECIP = 1002 PI_MTA_SMTP_IN_SENDER = 1003 PI_MTA_SMTP_IN_RECIP = 1004 PI_MTA_ALL_SENDER = 1005 PI_MTA_ALL_RECIP = 1006 |
DataOut
|
Variant array that contains MTA log summary information for a server. |
RowCount
|
The number of MTA log summary information rows returned. |
TopNN
|
Specifies that this method should only return rows with the top 'NN' MTA summary entries, as measured by message count and message size. This parameter is optional. |
Boolean.
To get the previous day's top 100 SMTP Out
Sender log summary results for the EXCHSERVER1
Exchange server using the George
mailbox, enter:
Const PI_MTA_SMTP_OUT_SENDER = 1001 Set obj = CreateObject("McExchg.MTALogAnalyzer") If obj.LogonToMAPI("EXCHSERVER1", "George") Then If obj.ProcessPrevDaysLog() Then If obj.LogSummary(PI_MTA_SMTP_OUT_SENDER, varData, lngRowCount, 100) Then For lngIndex = 0 to lngRowCount - 1 strObject = varData(0, lngIndex) lngMsgCount = varData(1, lngIndex) lngMB = varData(2, lngIndex) ' Do something with summary information Next Else strError = obj.GetError() End If Else strError = obj.GetError() End If Else strError = obj.GetError() End If
This example show how to retrieve MTA log summary information from an Exchange server.